#include "emojichoose.h"
#include "ui_emojichoose.h"

#include <QButtonGroup>

emojichoose::emojichoose(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::emojichoose)
{
    ui->setupUi(this);
    mybtgp = new QButtonGroup(this);
    mybtgp->addButton(ui->pushButton_1, 1);
    mybtgp->addButton(ui->pushButton_2, 2);
    mybtgp->addButton(ui->pushButton_3, 3);
    mybtgp->addButton(ui->pushButton_4, 4);
    mybtgp->addButton(ui->pushButton_5, 5);
    mybtgp->addButton(ui->pushButton_6, 6);
    mybtgp->addButton(ui->pushButton_7, 7);
    mybtgp->addButton(ui->pushButton_8, 8);

    connect(mybtgp, SIGNAL(idClicked(int)), this, SLOT(close()));

}

emojichoose::~emojichoose()
{
    delete ui;
}

QButtonGroup *emojichoose::getButtonGroup() const
{
    return mybtgp;
}
